<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<style>
	*{
		font-family: 微软雅黑；
	}
</style>
<script src="jquery.js"></script>
<body>
	<img src="a.jpg" alt="">
</body>
<script>

	$('img').hover(
		function(){
			this.src='b.jpg';
		},
		function(){
			this.src='a.jpg';
		}
	);
	
</script>
</html>